package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.HotelDetail;
import cn.wolfcode.trip.base.domain.HotelViews;

import java.util.List;

public interface HotelDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HotelDetail entity);

    HotelDetail selectByPrimaryKey(Long id);

    List<HotelDetail> selectAll();

    int updateByPrimaryKey(HotelDetail entity);

    List<HotelDetail> selectHotelDetailByHotelRegionName(String city);

    List<HotelDetail> selectHotelDetailsByHotelDetailsId(Long id);
    //更新点赞数
    int updateLikeCount(HotelDetail hotelDetail);

    int selectLikeSum(Long id);

    int selectPageView(Long hid);

    HotelDetail selectPageViewAndId(Long hid);

    void updatePageview(HotelDetail pageViewAndId);

    List<HotelDetail> selectHotelRecommend(int state);
}